package book;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

public class BookTest {
	
	@Test
	public void test() {
		List<Book> bookList = new ArrayList<>();
		bookList.add(new Book(1,"a","a","a"));
		bookList.add(new Book(2,"b","a","a"));
		bookList.add(new Book(3,"c","a","a"));
		bookList.add(new Book(4,"d","a","a"));
		bookList.add(new Book(5,"e","a","a"));
		
		Book book = new Book(2,"a","a","a");
		System.out.println(bookList.contains(book));
		System.out.println(bookList.indexOf(book));
		System.out.println(bookList.remove(book));
	}
}
